import request from "@/utils/request";


/**
 * 新增用户
 * @param {} data
 * @returns
 */
export function adminLogin(username, password) {
    return request({
        url: '/admin/login',
        method: 'post',
        param: {username: username, password: password}
    })


}
/** 获取公告列表 */
export function getAnnouncementList(data) {
    return request({
        url: '/admin/getAnnouncementList',
        method: 'post',
        data: data
    })
}

/** 修改公告信息 */
export function editAnnouncement(data) {
    return request({
        url: '/admin/editAnnouncementList',
        method: 'post',
        data: data
    })
}

/** 新增公告 */
export function addAnnouncement(data) {
    return request({
        url: '/admin/addAnnouncementList',
        method: 'post',
        data: data
    })
}
